const TOKEN_KEY = 'access_token';

export function setTokenAUTH<T = any>(token: T) {
  localStorage.setItem(TOKEN_KEY, JSON.stringify(token));
}

export function getTokenAUTH(): any {
  const value = localStorage.getItem(TOKEN_KEY);
  return value;
}

export function removeTokenAUTH() {
  localStorage.removeItem(TOKEN_KEY);
}
